package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domain.Product;
import com.itheima.vo.PageBeanVo;

/**
 * <p>
 * 商品信息 服务类
 * </p>
 *
 * @author fukeke
 * @since 2022-11-11
 */
public interface IProductService extends IService<Product> {
    //查询单个Product
    Product findById(Long id);
    PageBeanVo findProductByPage(Integer pageNum, Integer pageSize, Integer brandId, String keyword, Integer productCategoryId, String productSn, Integer publishStatus);

    void createProduct(Product productParam);

    Product findByNameOrId(String keyword);

    void updateDeleteStatus(Integer [] ids,Integer deleteStatus);

    void setNew(Integer [] ids,Integer newStatus);

    void upAndDown(Integer[] ids,Integer publishStatus);

    void recommend(Integer[] ids,Integer recommendStatus);



    void updateProduct(Integer id, Product productParam);

    Product selectById(Long id);
}
